#!/usr/bin/python

import traceback

def a():
	print "enter"
	raise SyntaxError, "traceback test"
	print "leave"

def b():
	a()
try:
	try:
		b()
	except:
		traceback.print_exc()
		raise SyntaxError, "traceback test 2"
		print
except:
	print
	traceback.print_exc()
